<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>flex-wrap: wrap</title>
</head>
<style>

.flex-container {
	display: -webkit-flex;
	display: flex;
	flex-direction: row;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	width: 400px;
	/* height: 250px; */
	background-color: lightgrey;
}

.flex-item {
	background-color: cornflowerblue;
	width: 100px;
	height: 100px;
	margin: 10px;
}
</style>
<body>

flex-wrap 属性用于指定弹性盒子的子元素换行方式。<br>
	nowrap - 默认， 弹性容器为单行。该情况下弹性子项可能会溢出容器。<br>
	wrap - 弹性容器为多行。该情况下弹性子项溢出的部分会被放置到新行，子项内部会发生断行<br>
	wrap-reverse -反转 wrap 排列。<br><br>

<div class="flex-container">
	<div class="flex-item">flex item 1</div>
	<div class="flex-item">flex item 2</div>
	<div class="flex-item">flex item 3</div>
	
	<div class="flex-item">flex item 4</div>
	<div class="flex-item">flex item 5</div>
	<div class="flex-item">flex item 6</div>
	<div class="flex-item">flex item 7</div>
</div>

</body>
</html>
